﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PcArduinoControl
{
	enum FailCode :
		byte
	{
		// Misc                  (0x00 - 0x0f)
		Success                    = 0x00,
		AlreadyDone                = 0x01,
		InvalidCommand             = 0x02,
		NotConnected               = 0x03,
        IncorrectNumberOfArguments = 0x04,
		UnknownFail                = 0x0f,
		// IO                    (0x10 - 0x1f)
		PinNonexistant             = 0x10,
		PinOutNotIn                = 0x11,
		PinInNotOut                = 0x12,
		PinDigNotAnl               = 0x13,
		PinDigOutNotAnlIn          = 0x14,
		PinDigInNotAnlOut          = 0x15,
		PinAnlNotDig               = 0x16,
		PinAnlOutNotDigIn          = 0x17,
		PinAnlInNotDigOut          = 0x18,
		// Input Streaming       (0x20 - 0x2f)
		InvalidStreamMode          = 0x20,
		// Reserved for Protocol (0xe0 - 0xef)
		// Reserved for Internal (0xf0 - 0xff)
		NoResponse                 = 0xf0,
		Invalid                    = 0xff,
	}
}
